﻿using Newtonsoft.Json.Linq;
using System;
using System.Windows;
using System.Windows.Controls;
using wpf_print.data;

namespace wpf_print.view
{
    internal class PaperView
    {
        public static Grid GePaperView(JObject obj)
        {
            Grid grid = new();
            ColumnDefinition cd = new();
            grid.ColumnDefinitions.Add(cd);
            RowDefinition rd = new();
            grid.RowDefinitions.Add(rd);
            WrapPanel warPanel = BoxView.GetBoxView(obj);
            Grid.SetRow(warPanel, 0);
            Grid.SetColumn(warPanel, 0);
            grid.Children.Add(warPanel);
            return grid;


        }
    }
}
